home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / Movie_Cata216184952009.psc / My Movies Catalog / forms / frmMain.frm
Text File  |  2009-09-05  |  72KB  |  1,812 lines

  1. VERSION 5.00
  2. Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "msinet.OCX"
  3. Begin VB.Form frmMain 
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Movies Catalog Maker v1.0.2"
  6.    ClientHeight    =   7590
  7.    ClientLeft      =   45
  8.    ClientTop       =   435
  9.    ClientWidth     =   11160
  10.    BeginProperty Font 
  11.       Name            =   "Courier New"
  12.       Size            =   8.25
  13.       Charset         =   0
  14.       Weight          =   400
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    Icon            =   "frmMain.frx":0000
  20.    KeyPreview      =   -1  'True
  21.    LinkTopic       =   "Form1"
  22.    LockControls    =   -1  'True
  23.    MaxButton       =   0   'False
  24.    ScaleHeight     =   7590
  25.    ScaleWidth      =   11160
  26.    StartUpPosition =   2  'CenterScreen
  27.    Begin VB.CheckBox ChkDownloadMovie 
  28.       Caption         =   "Download Trailer if exist"
  29.       Height          =   255
  30.       Left            =   345
  31.       TabIndex        =   58
  32.       Top             =   6555
  33.       Value           =   1  'Checked
  34.       Width           =   4320
  35.    End
  36.    Begin VB.CheckBox ChkError 
  37.       Caption         =   "On {error} continue parsing"
  38.       Height          =   255
  39.       Left            =   4725
  40.       TabIndex        =   55
  41.       Top             =   6555
  42.       Value           =   1  'Checked
  43.       Width           =   3270
  44.    End
  45.    Begin VB.CommandButton cmdExport 
  46.       Caption         =   "Export Data"
  47.       Enabled         =   0   'False
  48.       Height          =   300
  49.       Left            =   8145
  50.       TabIndex        =   51
  51.       Top             =   6510
  52.       Width           =   1560
  53.    End
  54.    Begin VB.CommandButton cmdExit 
  55.       Caption         =   "Exit"
  56.       Height          =   300
  57.       Left            =   9885
  58.       TabIndex        =   13
  59.       Top             =   6510
  60.       Width           =   1065
  61.    End
  62.    Begin VB.Frame Frame2 
  63.       Caption         =   "Option Search and Title"
  64.       Height          =   705
  65.       Left            =   75
  66.       TabIndex        =   6
  67.       Top             =   6840
  68.       Width           =   11010
  69.       Begin VB.PictureBox Picture2 
  70.          BorderStyle     =   0  'None
  71.          Height          =   450
  72.          Left            =   30
  73.          ScaleHeight     =   450
  74.          ScaleWidth      =   10935
  75.          TabIndex        =   7
  76.          Top             =   210
  77.          Width           =   10935
  78.          Begin VB.CommandButton cmdSearch 
  79.             Caption         =   "Start"
  80.             Height          =   300
  81.             Left            =   9795
  82.             TabIndex        =   12
  83.             Top             =   45
  84.             Width           =   1005
  85.          End
  86.          Begin VB.ComboBox cmbListServer 
  87.             Height          =   330
  88.             ItemData        =   "frmMain.frx":23D2
  89.             Left            =   6165
  90.             List            =   "frmMain.frx":23D9
  91.             Style           =   2  'Dropdown List
  92.             TabIndex        =   11
  93.             Top             =   45
  94.             Width           =   3495
  95.          End
  96.          Begin VB.TextBox txtTitle 
  97.             Height          =   285
  98.             Left            =   765
  99.             TabIndex        =   9
  100.             Text            =   "Ricatto D'amore"
  101.             Top             =   75
  102.             Width           =   4155
  103.          End
  104.          Begin VB.Label Label3 
  105.             Caption         =   "Search In:"
  106.             Height          =   240
  107.             Left            =   5040
  108.             TabIndex        =   10
  109.             Top             =   105
  110.             Width           =   1155
  111.          End
  112.          Begin VB.Label Label2 
  113.             Caption         =   "Title:"
  114.             Height          =   225
  115.             Left            =   90
  116.             TabIndex        =   8
  117.             Top             =   105
  118.             Width           =   720
  119.          End
  120.       End
  121.    End
  122.    Begin VB.Frame Frame1 
  123.       Caption         =   "Movie Info"
  124.       Height          =   5625
  125.       Left            =   3180
  126.       TabIndex        =   4
  127.       Top             =   795
  128.       Width           =   7905
  129.       Begin VB.PictureBox picList 
  130.          BorderStyle     =   0  'None
  131.          Height          =   5325
  132.          Left            =   45
  133.          ScaleHeight     =   5325
  134.          ScaleWidth      =   7815
  135.          TabIndex        =   45
  136.          Top             =   270
  137.          Visible         =   0   'False
  138.          Width           =   7815
  139.          Begin VB.ListBox lstUrl 
  140.             Height          =   4890
  141.             Left            =   60
  142.             TabIndex        =   48
  143.             Top             =   45
  144.             Width           =   7665
  145.          End
  146.          Begin VB.CommandButton cmdSelect 
  147.             Caption         =   "Select"
  148.             Height          =   300
  149.             Left            =   6615
  150.             TabIndex        =   47
  151.             Top             =   4980
  152.             Width           =   1155
  153.          End
  154.          Begin VB.CommandButton cmdCancel 
  155.             Caption         =   "Cancel"
  156.             Height          =   300
  157.             Left            =   5160
  158.             TabIndex        =   46
  159.             Top             =   4980
  160.             Width           =   1260
  161.          End
  162.          Begin VB.Label Label4 
  163.             Caption         =   "Select the apropiated Link from the list, then click 'Select' or 'Cancel'..."
  164.             Height          =   405
  165.             Left            =   90
  166.             TabIndex        =   49
  167.             Top             =   4920
  168.             Width           =   4740
  169.          End
  170.       End
  171.       Begin VB.PictureBox Picture1 
  172.          BorderStyle     =   0  'None
  173.          Height          =   5400
  174.          Left            =   15
  175.          ScaleHeight     =   5400
  176.          ScaleWidth      =   7830
  177.          TabIndex        =   5
  178.          Top             =   195
  179.          Width           =   7830
  180.          Begin VB.TextBox txtFileds 
  181.             Height          =   285
  182.             Index           =   14
  183.             Left            =   1755
  184.             TabIndex        =   56
  185.             Text            =   "n.a"
  186.             Top             =   3525
  187.             Width           =   6030
  188.          End
  189.          Begin VB.TextBox txtFileds 
  190.             Height          =   1050
  191.             Index           =   13
  192.             Left            =   105
  193.             MultiLine       =   -1  'True
  194.             ScrollBars      =   2  'Vertical
  195.             TabIndex        =   43
  196.             Text            =   "frmMain.frx":23F9
  197.             Top             =   4065
  198.             Width           =   7665
  199.          End
  200.          Begin VB.TextBox txtFileds 
  201.             Height          =   285
  202.             Index           =   12
  203.             Left            =   6345
  204.             TabIndex        =   42
  205.             Text            =   "n.a"
  206.             Top             =   3195
  207.             Width           =   1440
  208.          End
  209.          Begin VB.TextBox txtFileds 
  210.             Height          =   285
  211.             Index           =   11
  212.             Left            =   1755
  213.             TabIndex        =   40
  214.             Text            =   "n.a"
  215.             Top             =   3195
  216.             Width           =   3300
  217.          End
  218.          Begin VB.TextBox txtFileds 
  219.             Height          =   285
  220.             Index           =   10
  221.             Left            =   1755
  222.             TabIndex        =   38
  223.             Text            =   "n.a"
  224.             Top             =   2850
  225.             Width           =   6030
  226.          End
  227.          Begin VB.TextBox txtFileds 
  228.             Height          =   285
  229.             Index           =   9
  230.             Left            =   1755
  231.             TabIndex        =   36
  232.             Text            =   "n.a"
  233.             Top             =   2520
  234.             Width           =   6030
  235.          End
  236.          Begin VB.TextBox txtFileds 
  237.             Height          =   285
  238.             Index           =   8
  239.             Left            =   1755
  240.             TabIndex        =   34
  241.             Text            =   "n.a"
  242.             Top             =   2190
  243.             Width           =   6030
  244.          End
  245.          Begin VB.TextBox txtFileds 
  246.             Height          =   285
  247.             Index           =   7
  248.             Left            =   1755
  249.             TabIndex        =   32
  250.             Text            =   "n.a"
  251.             Top             =   1860
  252.             Width           =   6030
  253.          End
  254.          Begin VB.TextBox txtFileds 
  255.             Height          =   285
  256.             Index           =   6
  257.             Left            =   6795
  258.             TabIndex        =   30
  259.             Text            =   "n.a"
  260.             Top             =   1515
  261.             Width           =   990
  262.          End
  263.          Begin VB.TextBox txtFileds 
  264.             Height          =   285
  265.             Index           =   5
  266.             Left            =   1755
  267.             TabIndex        =   28
  268.             Text            =   "n.a"
  269.             Top             =   1515
  270.             Width           =   3900
  271.          End
  272.          Begin VB.TextBox txtFileds 
  273.             Height          =   285
  274.             Index           =   4
  275.             Left            =   6345
  276.             TabIndex        =   26
  277.             Text            =   "n.a"
  278.             Top             =   1170
  279.             Width           =   1425
  280.          End
  281.          Begin VB.TextBox txtFileds 
  282.             Height          =   285
  283.             Index           =   3
  284.             Left            =   1755
  285.             TabIndex        =   24
  286.             Text            =   "n.a"
  287.             Top             =   1170
  288.             Width           =   3900
  289.          End
  290.          Begin VB.TextBox txtFileds 
  291.             Height          =   285
  292.             Index           =   2
  293.             Left            =   1755
  294.             TabIndex        =   20
  295.             Text            =   "n.a"
  296.             Top             =   825
  297.             Width           =   6015
  298.          End
  299.          Begin VB.TextBox txtFileds 
  300.             Height          =   285
  301.             Index           =   1
  302.             Left            =   1755
  303.             TabIndex        =   18
  304.             Text            =   "n.a"
  305.             Top             =   480
  306.             Width           =   6015
  307.          End
  308.          Begin VB.TextBox txtFileds 
  309.             Height          =   285
  310.             Index           =   0
  311.             Left            =   1755
  312.             TabIndex        =   17
  313.             Text            =   "n.a"
  314.             Top             =   120
  315.             Width           =   6015
  316.          End
  317.          Begin VB.Label lbls 
  318.             Alignment       =   1  'Right Justify
  319.             Caption         =   "Movie Trailer:"
  320.             Height          =   255
  321.             Index           =   14
  322.             Left            =   105
  323.             TabIndex        =   57
  324.             Top             =   3570
  325.             Width           =   1635
  326.          End
  327.          Begin VB.Label lbls 
  328.             Caption         =   "Plot:"
  329.             BeginProperty Font 
  330.                Name            =   "Courier New"
  331.                Size            =   8.25
  332.                Charset         =   0
  333.                Weight          =   700
  334.                Underline       =   0   'False
  335.                Italic          =   0   'False
  336.                Strikethrough   =   0   'False
  337.             EndProperty
  338.             ForeColor       =   &H8000000D&
  339.             Height          =   255
  340.             Index           =   13
  341.             Left            =   90
  342.             TabIndex        =   44
  343.             Top             =   3840
  344.             Width           =   660
  345.          End
  346.          Begin VB.Label lbls 
  347.             Alignment       =   1  'Right Justify
  348.             Caption         =   "Date Out:"
  349.             Height          =   255
  350.             Index           =   12
  351.             Left            =   5100
  352.             TabIndex        =   41
  353.             Top             =   3195
  354.             Width           =   1185
  355.          End
  356.          Begin VB.Label lbls 
  357.             Alignment       =   1  'Right Justify
  358.             Caption         =   "Distribution:"
  359.             Height          =   255
  360.             Index           =   11
  361.             Left            =   90
  362.             TabIndex        =   39
  363.             Top             =   3225
  364.             Width           =   1635
  365.          End
  366.          Begin VB.Label lbls 
  367.             Alignment       =   1  'Right Justify
  368.             Caption         =   "Production:"
  369.             Height          =   255
  370.             Index           =   10
  371.             Left            =   90
  372.             TabIndex        =   37
  373.             Top             =   2880
  374.             Width           =   1635
  375.          End
  376.          Begin VB.Label lbls 
  377.             Alignment       =   1  'Right Justify
  378.             Caption         =   "Cast:"
  379.             Height          =   255
  380.             Index           =   9
  381.             Left            =   90
  382.             TabIndex        =   35
  383.             Top             =   2580
  384.             Width           =   1635
  385.          End
  386.          Begin VB.Label lbls 
  387.             Alignment       =   1  'Right Justify
  388.             Caption         =   "Official Site:"
  389.             Height          =   255
  390.             Index           =   8
  391.             Left            =   90
  392.             TabIndex        =   33
  393.             Top             =   2235
  394.             Width           =   1635
  395.          End
  396.          Begin VB.Label lbls 
  397.             Alignment       =   1  'Right Justify
  398.             Caption         =   "Directed By:"
  399.             Height          =   255
  400.             Index           =   7
  401.             Left            =   90
  402.             TabIndex        =   31
  403.             Top             =   1920
  404.             Width           =   1635
  405.          End
  406.          Begin VB.Label lbls 
  407.             Alignment       =   1  'Right Justify
  408.             Caption         =   "Duration:"
  409.             Height          =   255
  410.             Index           =   6
  411.             Left            =   5700
  412.             TabIndex        =   29
  413.             Top             =   1530
  414.             Width           =   1035
  415.          End
  416.          Begin VB.Label lbls 
  417.             Alignment       =   1  'Right Justify
  418.             Caption         =   "Gender:"
  419.             Height          =   255
  420.             Index           =   5
  421.             Left            =   90
  422.             TabIndex        =   27
  423.             Top             =   1560
  424.             Width           =   1635
  425.          End
  426.          Begin VB.Label lbls 
  427.             Alignment       =   1  'Right Justify
  428.             Caption         =   "Year:"
  429.             Height          =   255
  430.             Index           =   4
  431.             Left            =   5085
  432.             TabIndex        =   25
  433.             Top             =   1185
  434.             Width           =   1215
  435.          End
  436.          Begin VB.Label lbls 
  437.             Alignment       =   1  'Right Justify
  438.             Caption         =   "Country:"
  439.             Height          =   255
  440.             Index           =   3
  441.             Left            =   90
  442.             TabIndex        =   23
  443.             Top             =   1215
  444.             Width           =   1635
  445.          End
  446.          Begin VB.Label lblStatus 
  447.             Caption         =   "##"
  448.             Height          =   270
  449.             Left            =   120
  450.             TabIndex        =   22
  451.             Top             =   5145
  452.             Width           =   7650
  453.          End
  454.          Begin VB.Label lbls 
  455.             Alignment       =   1  'Right Justify
  456.             Caption         =   "Original Title:"
  457.             Height          =   255
  458.             Index           =   2
  459.             Left            =   90
  460.             TabIndex        =   21
  461.             Top             =   870
  462.             Width           =   1635
  463.          End
  464.          Begin VB.Label lbls 
  465.             Alignment       =   1  'Right Justify
  466.             Caption         =   "Link Card:"
  467.             Height          =   255
  468.             Index           =   1
  469.             Left            =   90
  470.             TabIndex        =   19
  471.             Top             =   510
  472.             Width           =   1635
  473.          End
  474.          Begin VB.Label lbls 
  475.             Alignment       =   1  'Right Justify
  476.             Caption         =   "Movie Title:"
  477.             Height          =   255
  478.             Index           =   0
  479.             Left            =   90
  480.             TabIndex        =   16
  481.             Top             =   150
  482.             Width           =   1635
  483.          End
  484.       End
  485.    End
  486.    Begin InetCtlsObjects.Inet Inet 
  487.       Left            =   10500
  488.       Top             =   60
  489.       _ExtentX        =   1005
  490.       _ExtentY        =   1005
  491.       _Version        =   393216
  492.    End
  493.    Begin VB.Frame frames 
  494.       Enabled         =   0   'False
  495.       Height          =   5040
  496.       Left            =   75
  497.       TabIndex        =   0
  498.       Top             =   795
  499.       Width           =   3075
  500.       Begin VB.PictureBox Pic_ 
  501.          BorderStyle     =   0  'None
  502.          Height          =   540
  503.          Left            =   30
  504.          ScaleHeight     =   540
  505.          ScaleWidth      =   3000
  506.          TabIndex        =   52
  507.          Top             =   4455
  508.          Width           =   3000
  509.          Begin VB.CommandButton cmdSaveFormat 
  510.             Caption         =   "..."
  511.             Height          =   285
  512.             Left            =   2310
  513.             TabIndex        =   54
  514.             Top             =   150
  515.             Width           =   540
  516.          End
  517.          Begin VB.ComboBox cmbHW 
  518.             Height          =   330
  519.             Left            =   135
  520.             Style           =   2  'Dropdown List
  521.             TabIndex        =   53
  522.             Top             =   120
  523.             Width           =   1995
  524.          End
  525.       End
  526.       Begin mymoviecatalog.ShowImage scCover 
  527.          Height          =   3225
  528.          Left            =   390
  529.          TabIndex        =   14
  530.          Top             =   630
  531.          Width           =   2250
  532.          _ExtentX        =   3969
  533.          _ExtentY        =   5689
  534.          Picture         =   "frmMain.frx":23FF
  535.          BorderStyle     =   0
  536.          BackColor       =   -2147483636
  537.       End
  538.       Begin VB.Label lblSize 
  539.          Alignment       =   2  'Center
  540.          BackColor       =   &H8000000B&
  541.          Caption         =   "n.a"
  542.          BeginProperty Font 
  543.             Name            =   "Courier New"
  544.             Size            =   8.25
  545.             Charset         =   0
  546.             Weight          =   700
  547.             Underline       =   0   'False
  548.             Italic          =   0   'False
  549.             Strikethrough   =   0   'False
  550.          EndProperty
  551.          ForeColor       =   &H8000000D&
  552.          Height          =   255
  553.          Left            =   150
  554.          TabIndex        =   50
  555.          Top             =   4185
  556.          Width           =   2730
  557.       End
  558.       Begin VB.Label lblHW 
  559.          Alignment       =   2  'Center
  560.          BackStyle       =   0  'Transparent
  561.          Caption         =   "n.a"
  562.          BeginProperty Font 
  563.             Name            =   "Courier New"
  564.             Size            =   8.25
  565.             Charset         =   0
  566.             Weight          =   700
  567.             Underline       =   0   'False
  568.             Italic          =   0   'False
  569.             Strikethrough   =   0   'False
  570.          EndProperty
  571.          ForeColor       =   &H80000005&
  572.          Height          =   255
  573.          Left            =   360
  574.          TabIndex        =   15
  575.          Top             =   3885
  576.          Width           =   2295
  577.       End
  578.       Begin VB.Image imgbackg 
  579.          Height          =   3930
  580.          Left            =   150
  581.          Picture         =   "frmMain.frx":2CCF
  582.          Top             =   255
  583.          Width           =   2730
  584.       End
  585.    End
  586.    Begin VB.Label Label1 
  587.       BackColor       =   &H80000005&
  588.       Caption         =   "This is a freeware tool to find the info of your favorite movies! (c) 2009 by Salvo cortesiano."
  589.       Height          =   420
  590.       Left            =   4935
  591.       TabIndex        =   3
  592.       Top             =   165
  593.       Width           =   6090
  594.    End
  595.    Begin VB.Label lblsTit 
  596.       BackStyle       =   0  'Transparent
  597.       Caption         =   "Movies Catalog Maker v1.0.2"
  598.       BeginProperty Font 
  599.          Name            =   "Times New Roman"
  600.          Size            =   15.75
  601.          Charset         =   0
  602.          Weight          =   400
  603.          Underline       =   0   'False
  604.          Italic          =   -1  'True
  605.          Strikethrough   =   0   'False
  606.       EndProperty
  607.       ForeColor       =   &H8000000D&
  608.       Height          =   375
  609.       Index           =   1
  610.       Left            =   840
  611.       TabIndex        =   2
  612.       Top             =   165
  613.       Width           =   4320
  614.    End
  615.    Begin VB.Label lblsTit 
  616.       BackStyle       =   0  'Transparent
  617.       Caption         =   "Movies Catalog Maker v1.0.2"
  618.       BeginProperty Font 
  619.          Name            =   "Times New Roman"
  620.          Size            =   15.75
  621.          Charset         =   0
  622.          Weight          =   400
  623.          Underline       =   0   'False
  624.          Italic          =   -1  'True
  625.          Strikethrough   =   0   'False
  626.       EndProperty
  627.       ForeColor       =   &H8000000B&
  628.       Height          =   375
  629.       Index           =   0
  630.       Left            =   795
  631.       TabIndex        =   1
  632.       Top             =   195
  633.       Width           =   4320
  634.    End
  635.    Begin VB.Image Image1 
  636.       Height          =   480
  637.       Left            =   150
  638.       Picture         =   "frmMain.frx":3EE6
  639.       Top             =   105
  640.       Width           =   480
  641.    End
  642.    Begin VB.Shape Shape1 
  643.       BackStyle       =   1  'Opaque
  644.       BorderColor     =   &H80000003&
  645.       Height          =   765
  646.       Left            =   -30
  647.       Top             =   -30
  648.       Width           =   11220
  649.    End
  650. End
  651. Attribute VB_Name = "frmMain"
  652. Attribute VB_GlobalNameSpace = False
  653. Attribute VB_Creatable = False
  654. Attribute VB_PredeclaredId = True
  655. Attribute VB_Exposed = False
  656. '///
  657. Option Explicit
  658.  
  659. Private statusRequest As Long
  660. Private CancelSearch As Boolean
  661. Private strFilesPath As String
  662. Private tmpTitleMovie As String
  663. Private Sub cmdCancel_Click()
  664.     picList.Visible = False
  665.     lstUrl.Tag = "cancel"
  666. End Sub
  667.  
  668. Private Sub cmdExit_Click()
  669.     Unload Me
  670. End Sub
  671.  
  672. Private Sub cmdExport_Click()
  673.     Dim i As Integer
  674.     Dim tmp As String
  675.     For i = 0 To 14
  676.         If txtFileds(i).Text <> "n.a" Then
  677.             If i = 0 Then
  678.                 tmp = tmp & "Movie Title: " & txtFileds(i).Text & vbCrLf
  679.             ElseIf i = 1 Then
  680.                 tmp = tmp & "Direct Link Movie: " & txtFileds(i).Text & vbCrLf
  681.             ElseIf i = 2 Then
  682.                 tmp = tmp & "Original Title: " & txtFileds(i).Text & vbCrLf
  683.             ElseIf i = 3 Then
  684.                 tmp = tmp & "Country: " & txtFileds(i).Text & vbCrLf
  685.             ElseIf i = 4 Then
  686.                 tmp = tmp & "Year: " & txtFileds(i).Text & vbCrLf
  687.             ElseIf i = 5 Then
  688.                 tmp = tmp & "Gender: " & txtFileds(i).Text & vbCrLf
  689.             ElseIf i = 6 Then
  690.                 tmp = tmp & "Duration: " & txtFileds(i).Text & vbCrLf
  691.             ElseIf i = 7 Then
  692.                 tmp = tmp & "Directed By: " & txtFileds(i).Text & vbCrLf
  693.             ElseIf i = 8 Then
  694.                 tmp = tmp & "Official Site: " & txtFileds(i).Text & vbCrLf
  695.             ElseIf i = 9 Then
  696.                 tmp = tmp & "Cast: " & txtFileds(i).Text & vbCrLf
  697.             ElseIf i = 10 Then
  698.                 tmp = tmp & "Production: " & txtFileds(i).Text & vbCrLf
  699.             ElseIf i = 11 Then
  700.                 tmp = tmp & "Distribution: " & txtFileds(i).Text & vbCrLf
  701.             ElseIf i = 12 Then
  702.                 tmp = tmp & "Date Out: " & txtFileds(i).Text & vbCrLf
  703.             ElseIf i = 13 Then
  704.                 tmp = tmp & "Plot: " & txtFileds(i).Text & vbCrLf
  705.             ElseIf i = 14 Then
  706.                 tmp = tmp & "Link of Trailer: " & txtFileds(i).Text & vbCrLf
  707.             End If
  708.         End If
  709.     Next i
  710.     Open strFilesPath + tmpTitleMovie + ".txt" For Output As #1
  711.         Print #1, tmp
  712.         MsgBox "The all Data of the Movie: " & txtFileds(0).Text & ", exported success!", vbInformation, App.Title
  713.     Close #1
  714.     If MsgBox("Copy the Data to Clipboard?", vbYesNo + vbQuestion, "Copy to Clipboard") = vbYes Then
  715.         Clipboard.Clear
  716.         Clipboard.SetText tmp
  717.         MsgBox "The all Data of the Movie: " & txtFileds(0).Text & ", success to Clipboard!", vbInformation, App.Title
  718.     End If
  719.     tmp = Empty
  720. End Sub
  721.  
  722. Private Sub cmdSearch_Click()
  723.     If SearchMovie(cmbListServer.List(cmbListServer.ListIndex), txtTitle.Text) Then:
  724. End Sub
  725.  
  726. Private Sub cmdSelect_Click()
  727.     If lstUrl.List(lstUrl.ListIndex) = Empty Then
  728.             MsgBox "Select one Link from the list pls!", vbExclamation, App.Title
  729.         Exit Sub
  730.     End If
  731.     lstUrl.Tag = lstUrl.List(lstUrl.ListIndex)
  732.     picList.Visible = False
  733. End Sub
  734.  
  735. Private Sub Form_Initialize()
  736.     '/// Init Controls XP/Vista Manifest
  737.     '/// *****************************************************************
  738.     If InitCommonControlsVB() Then:
  739.     If GetDefCover() Then: _
  740.     If FileExists(App.Path + "\cover_.jpg") Then scCover.loadimg App.Path + "\cover_.jpg"
  741. End Sub
  742.  
  743. Private Sub Form_Load()
  744.     cmbListServer.ListIndex = 0
  745. End Sub
  746.  
  747.  
  748. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  749.     Set frmMain = Nothing
  750. End Sub
  751.  
  752.  
  753. Private Sub Form_Unload(Cancel As Integer)
  754.     End
  755. End Sub
  756.  
  757.  
  758. Private Sub Inet_StateChanged(ByVal State As Integer)
  759.     statusRequest = State
  760. End Sub
  761.  
  762.  
  763. Private Sub lbls_Click(Index As Integer)
  764.     Dim OpenUrl As Integer
  765.     On Local Error Resume Next
  766.     If Index = 8 Then
  767.         If Mid$(txtFileds(8).Text, 1, 7) = "http://" Then
  768.             If MsgBox("Open the browser at: " & txtFileds(8).Text & "?", vbYesNo + _
  769.             vbQuestion, "Open-" & txtFileds(8).Text) = vbYes Then _
  770.             OpenUrl = ShellExecute(Me.hWnd, "Open", txtFileds(8).Text, "", App.Path, WINDOWSSTATE.OPEN_NORMAL)
  771.         End If
  772.     ElseIf Index = 1 Then
  773.         If Mid$(txtFileds(1).Text, 1, 7) = "http://" Then
  774.             If MsgBox("Open the browser at: " & txtFileds(1).Text & "?", vbYesNo + _
  775.             vbQuestion, "Open-" & txtFileds(1).Text) = vbYes Then _
  776.             OpenUrl = ShellExecute(Me.hWnd, "Open", txtFileds(1).Text, "", App.Path, WINDOWSSTATE.OPEN_NORMAL)
  777.         End If
  778.     ElseIf Index = 14 Then
  779.          If Mid$(txtFileds(14).Text, 1, 7) = "http://" Then
  780.             If MsgBox("Open the browser at: " & txtFileds(14).Text & "?", vbYesNo + _
  781.             vbQuestion, "Open-" & txtFileds(14).Text) = vbYes Then _
  782.             OpenUrl = ShellExecute(Me.hWnd, "Open", txtFileds(14).Text, "", App.Path, WINDOWSSTATE.OPEN_NORMAL)
  783.         End If
  784.     End If
  785. End Sub
  786.  
  787. Private Sub lstUrl_DblClick()
  788.     On Error Resume Next
  789.     lstUrl.Tag = lstUrl.List(lstUrl.ListIndex)
  790.     picList.Visible = False
  791. End Sub
  792.  
  793. Private Sub txtTitle_Change()
  794.     If Len(txtTitle.Text) > 0 Then
  795.         cmdSearch.Enabled = True
  796.     Else
  797.         cmdSearch.Enabled = False
  798.     End If
  799. End Sub
  800.  
  801. Private Sub txtTitle_KeyUp(KeyCode As Integer, Shift As Integer)
  802.     If Len(txtTitle.Text) > 0 Then
  803.         cmdSearch.Enabled = True
  804.     Else
  805.         cmdSearch.Enabled = False
  806.     End If
  807. End Sub
  808.  
  809.  
  810. Private Sub txtTitle_LostFocus()
  811.     If Len(txtTitle.Text) > 0 Then
  812.         cmdSearch.Enabled = True
  813.         txtTitle.Text = MakeProper(txtTitle.Text)
  814.     Else
  815.         cmdSearch.Enabled = False
  816.     End If
  817. End Sub
  818.  
  819.  
  820.  
  821. Private Function SearchMovie(strURL As String, strTitle As String) As Boolean
  822.     Dim strData As String
  823.     Dim sURL As String
  824.     Dim objLink As HTMLLinkElement
  825.     Dim objMSHTML As New MSHTML.HTMLDocument
  826.     Dim objDocument As MSHTML.HTMLDocument
  827.     Dim TempArray(20) As String
  828.     Dim FSO As New FileSystemObject
  829.     Dim Fs As File
  830.     Dim sT As String
  831.     Dim tmp As String
  832.     Dim pos1 As Long
  833.     Dim pos2 As Long
  834.     Dim dib As Long
  835.     Dim i As Integer
  836.     On Error GoTo ErrorHandler
  837.     
  838.     '/// Disable frame
  839.     Frame2.Enabled = False
  840.     frames.Enabled = False
  841.     
  842.     '/// Concatenate title fom (" ") to ("+")
  843.     strTitle = Replace(strTitle, " ", "+")
  844.     
  845.     '/// Parsing title and convert special chars to HTML char
  846.     strTitle = ParsingTitle(strTitle)
  847.     If strTitle = Empty Then
  848.                     MsgBox "Error to Parsing title!!", vbExclamation, App.Title
  849.                 Frame2.Enabled = True
  850.             SearchMovie = False
  851.         Exit Function
  852.     End If
  853.     
  854.     '/// Call the search URL
  855.     Select Case strURL
  856.         Case "http://filmup.leonardo.it/"
  857.             sURL = strURL & "cgi-bin/search.cgi?ps=10&fmt=long&q=" & strTitle & "&ul=&m=bool&wf=0020&wm=wrd&sy=0&x=33&y=10"
  858.             strData = Inet.OpenUrl(sURL)
  859.         Case 1
  860.             
  861.     End Select
  862.     
  863.     '/// Error request!! No Connection?!!
  864.     If statusRequest = "11" Then
  865.         SearchMovie = False
  866.                 MsgBox "This operation at this time is not possible!" & vbCrLf _
  867.                 & "Response code from Inet returned (11)!", vbExclamation, App.Title
  868.             Frame2.Enabled = True
  869.         Exit Function
  870.     End If
  871.     
  872.     '/// If movie not found return FALSE
  873.     If InStr(strData, "<small>Trovati <b>1") = 0 Then
  874.                     MsgBox "Movie: " & txtTitle.Text & ", not found in:" & vbCrLf _
  875.                     & strURL & "...", vbExclamation, App.Title
  876.                 Frame2.Enabled = True
  877.             SearchMovie = False
  878.         Exit Function
  879.     End If
  880.     
  881.     '/// Empty TAG List
  882.     lstUrl.Tag = Empty
  883.     
  884.     '/// Empty Firlds
  885.     For i = 0 To 14: txtFileds(i).Text = "n.a": Next i
  886.     
  887.     '/// Reset labels
  888.     lblSize.Caption = "n.a"
  889.     lblHW.Caption = "n.a"
  890.     
  891.     cmdExport.Enabled = False
  892.     
  893.     '/// Extract All Links
  894.     lblStatus.Caption = "Gettting document via HTTP..."
  895.     DoEvents
  896.     '/// This function is only available with Internet Explorer 5 > and later
  897.     Set objDocument = objMSHTML.createDocumentFromUrl(sURL, vbNullString)
  898.     lblStatus.Caption = "Getting and parsing HTML document..."
  899.     DoEvents
  900.     While objDocument.readyState <> "complete"
  901.         DoEvents
  902.     Wend
  903.     lblStatus.Caption = "Document completed..."
  904.     DoEvents
  905.     lblStatus.Caption = "Extracting links..."
  906.     '/// Parsing All Links
  907.     lstUrl.Clear
  908.     '/// Parsing potential Links
  909.     For Each objLink In objDocument.links
  910.         If InStr(objLink, "http://filmup.leonardo.it/sc_") Then lstUrl.AddItem objLink
  911.         lblStatus.Caption = "Extracted " & objLink & "..."
  912.         DoEvents
  913.     Next
  914.     
  915.     '/// Exit Parsing URL
  916.     lblStatus.Caption = "All list URL Done..."
  917.     
  918.     '/// Repeat until the TAG of lstURL is empty or contains "cancel" ;)
  919.     If lstUrl.ListCount > 0 Then
  920.         picList.Visible = True
  921.     Do
  922.         DoEvents
  923.         If lstUrl.Tag <> Empty Then Exit Do
  924.     Loop
  925.     End If
  926.     
  927.     '/// Choise one Link?
  928.     If lstUrl.Tag = "cancel" Then
  929.         MsgBox "Search aborted by user!", vbInformation, App.Title
  930.                 Frame2.Enabled = True
  931.             SearchMovie = False
  932.         Exit Function
  933.     End If
  934.     
  935.     '/// Display the Link of movie
  936.     txtFileds(1).Text = lstUrl.Tag
  937.     
  938.     '/// Go to link and Get ALL Info of the Movie
  939.     strData = Inet.OpenUrl(lstUrl.Tag)
  940.     
  941.     '/// Error request!! No Connection?!!
  942.     If statusRequest = "11" Then
  943.         SearchMovie = False
  944.                 MsgBox "This operation at this time is not possible!" & vbCrLf _
  945.                 & "Response code from Inet() returned (11)!" & vbCrLf _
  946.                 & "Request URL: " & lstUrl.Tag, vbExclamation, App.Title
  947.             Frame2.Enabled = True
  948.         Exit Function
  949.     End If
  950.     
  951.     '/// Clear Cover
  952.     If GetDefCover() Then: _
  953.         If FileExists(App.Path + "\cover_.jpg") Then scCover.loadimg App.Path + "\cover_.jpg"
  954.     
  955.     '/// Clear URL
  956.     lstUrl.Tag = Empty
  957.     
  958.     '/// The link of Triler exist?
  959.     Set objDocument = objMSHTML.createDocumentFromUrl(txtFileds(1).Text, vbNullString)
  960.     lblStatus.Caption = "Getting and parsing HTML document URL-Trailer..."
  961.     DoEvents
  962.     While objDocument.readyState <> "complete"
  963.         DoEvents
  964.     Wend
  965.     lblStatus.Caption = "Document completed..."
  966.     DoEvents
  967.     lstUrl.Clear
  968.     lblStatus.Caption = "Extracting links..."
  969.     '/// Parsing potential Links if contains Trailers
  970.     For Each objLink In objDocument.links
  971.         If InStr(objLink, "http://filmup.leonardo.it/trailers/") Then lstUrl.AddItem objLink
  972.         lblStatus.Caption = "Extracted " & objLink & "-trailers"
  973.         DoEvents
  974.     Next
  975.     lblStatus.Caption = "Document completed..."
  976.     
  977.     '/// Repeat until the TAG of lstURL is empty or contains "cancel" ;)
  978.     If lstUrl.ListCount > 0 Then
  979.         picList.Visible = True
  980.     Do
  981.         DoEvents
  982.         If lstUrl.Tag <> Empty Then Exit Do
  983.     Loop
  984.     End If
  985.     
  986.     '/// Choise one Link?
  987.     If lstUrl.Tag = "cancel" Then
  988.         TempArray(20) = "n.a"
  989.     Else
  990.         TempArray(20) = lstUrl.Tag
  991.     End If
  992.     
  993.     '/// Clear TAG
  994.     lstUrl.Tag = Empty
  995.     
  996.     '/// Extract the exat Title
  997.     txtFileds(0).Text = MakeProper(ParsingString(1, strData, "<title>FilmUP - Scheda: ", "</title>", vbTextCompare))
  998.     
  999.     '/// Create the folder Movie and the Sub-Folder of the Movie title if not exist
  1000.     tmpTitleMovie = txtFileds(0).Text
  1001.     
  1002.     '/// Remove the special chars in the Title of movie
  1003.     tmpTitleMovie = Replace(tmpTitleMovie, ":", "-")
  1004.     tmpTitleMovie = Replace(tmpTitleMovie, "\", "-")
  1005.     tmpTitleMovie = Replace(tmpTitleMovie, "/", "-")
  1006.     
  1007.     '/// Create sub-Folder
  1008.     If Not FSO.FolderExists(App.Path + "\movies\" + tmpTitleMovie) Then
  1009.         ' .... Create folder .torrent
  1010.         If MakeDirectory(App.Path + "\movies\" + tmpTitleMovie) = False Then:
  1011.         ' .... Until display the Error now, because if the Folder exist return a Error ;)
  1012.     End If
  1013.     '/// Last verify
  1014.     If FSO.FolderExists(App.Path + "\movies\" + tmpTitleMovie) Then
  1015.         strFilesPath = App.Path + "\movies\" + tmpTitleMovie & "\"
  1016.     Else
  1017.         strFilesPath = App.Path + "\"
  1018.     End If
  1019.     
  1020.     
  1021.     '///|\\\---------------------------------------------------------ORIGINAL TITLE
  1022.     
  1023.     
  1024.     '/// Extract Original Title
  1025.     If InStr(strData, "Titolo originale: </font></td>") Then
  1026.     pos1 = InStr(strData, "Titolo originale: </font></td>")
  1027.     If pos1 > 0 Then
  1028.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1029.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1030.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1031.         TempArray(1) = Mid$(strData, pos1, pos2 - pos1)
  1032.     Else
  1033.         TempArray(1) = "n.a"
  1034.     End If
  1035.     End If
  1036.     
  1037.     txtFileds(2).Text = MakeProper(TempArray(1))
  1038.     
  1039.     
  1040.     '///|\\\---------------------------------------------------------COUNTRY
  1041.     
  1042.     
  1043.     '/// Extract Country
  1044.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Nazione:") Then
  1045.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Nazione:")
  1046.     If pos1 > 0 Then
  1047.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1048.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1049.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1050.         TempArray(2) = Mid$(strData, pos1, pos2 - pos1)
  1051.     Else
  1052.         TempArray(2) = "n.a"
  1053.     End If
  1054.     End If
  1055.     
  1056.     txtFileds(3).Text = MakeProper(TempArray(2))
  1057.     
  1058.     
  1059.     '///|\\\---------------------------------------------------------YEAR
  1060.     
  1061.     
  1062.     '/// Extract Year
  1063.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Anno:") Then
  1064.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Anno:")
  1065.     If pos1 > 0 Then
  1066.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1067.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1068.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1069.         TempArray(3) = Mid$(strData, pos1, pos2 - pos1)
  1070.     Else
  1071.         TempArray(3) = "n.a"
  1072.     End If
  1073.     End If
  1074.     
  1075.     txtFileds(4).Text = MakeProper(TempArray(3))
  1076.     
  1077.     
  1078.     '///|\\\---------------------------------------------------------GENDER
  1079.     
  1080.     
  1081.     '/// Extract Gender
  1082.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Genere:") Then
  1083.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Genere:")
  1084.     If pos1 > 0 Then
  1085.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1086.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1087.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1088.         TempArray(4) = Mid$(strData, pos1, pos2 - pos1)
  1089.     Else
  1090.         TempArray(4) = "n.a"
  1091.     End If
  1092.     End If
  1093.     
  1094.     txtFileds(5).Text = MakeProper(TempArray(4))
  1095.     
  1096.     
  1097.     '///|\\\---------------------------------------------------------DURATION
  1098.     
  1099.     
  1100.     '/// Extract Duration
  1101.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Durata:") Then
  1102.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Durata:")
  1103.     If pos1 > 0 Then
  1104.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1105.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1106.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1107.         TempArray(5) = Mid$(strData, pos1, pos2 - pos1)
  1108.     Else
  1109.         TempArray(5) = "n.a"
  1110.     End If
  1111.     End If
  1112.     
  1113.     txtFileds(6).Text = TempArray(5)
  1114.     
  1115.     
  1116.     '///|\\\---------------------------------------------------------DIRECTED BY
  1117.     
  1118.     
  1119.     '/// Extract Director
  1120.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Regia:") Then
  1121.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Regia:")
  1122.     If pos1 > 0 Then
  1123.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1124.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1125.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1126.         TempArray(6) = Mid$(strData, pos1, pos2 - pos1)
  1127.     
  1128.     If InStr(TempArray(6), "href") > 0 Then
  1129.         pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Regia:")
  1130.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" _
  1131.         & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1132.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1133.         pos2 = InStr(pos1 + 1, strData, "</td>", vbTextCompare)
  1134.         TempArray(6) = Mid$(strData, pos1, pos2 - pos1)
  1135.         TempArray(6) = Replace(TempArray(6), "</font>", "")
  1136.         TempArray(6) = Replace(TempArray(6), "</a>, ", ", ")
  1137.         tmp = TempArray(6)
  1138.         For i = 0 To 3
  1139.             tmp = SimpleHTMLRep(TempArray(6), "<", ">", "")
  1140.             If tmp <> "n.a" Then TempArray(6) = tmp
  1141.         Next i
  1142.         
  1143.     End If
  1144.     
  1145.     Else
  1146.         TempArray(6) = "n.a"
  1147.     End If
  1148.     End If
  1149.     
  1150.     txtFileds(7).Text = TempArray(6)
  1151.     
  1152.     
  1153.     '///|\\\---------------------------------------------------------OFFICIAL SITE
  1154.  
  1155.     
  1156.     '/// Official Site
  1157.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Sito ufficiale:") Then
  1158.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Sito ufficiale:")
  1159.     If pos1 > 0 Then
  1160.         
  1161.     pos1 = InStr(strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & "> ")
  1162.     If pos1 > 0 Then
  1163.         TempArray(7) = "n.a"
  1164.     Else
  1165.         pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Sito ufficiale:") '// da togliere?
  1166.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & "><a class=""" & "filmup""" & " href=", vbTextCompare) _
  1167.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & "><a class=""" & "filmup""" & " href=") + 1
  1168.         pos2 = InStr(pos1 + 1, strData, "target=""" & "link""" & ">", vbTextCompare) - 2
  1169.         TempArray(7) = Mid$(strData, pos1, pos2 - pos1)
  1170.     End If
  1171.     
  1172.     If Len(TempArray(7)) = 0 Then
  1173.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Sito ufficiale:")
  1174.     If pos1 > 0 Then
  1175.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & "><a class=""" & "filmup""" & " target=""" & "link""" & " href=", vbTextCompare) _
  1176.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & "><a class=""" & "filmup""" & " target=""" & "link""" & " href=") + 1
  1177.         pos2 = InStr(pos1 + 1, strData, ">", vbTextCompare) - 1
  1178.         TempArray(7) = Mid$(strData, pos1, pos2 - pos1)
  1179.     End If
  1180.     End If
  1181.     Else
  1182.         TempArray(7) = "n.a"
  1183.     End If
  1184.     End If
  1185.     
  1186.     txtFileds(8).Text = TempArray(7)
  1187.     
  1188.     
  1189.     '///|\\\---------------------------------------------------------THE CAST
  1190.     
  1191.     
  1192.     '/// Extract the Cast
  1193.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Cast:") Then
  1194.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Cast:")
  1195.     If pos1 > 0 Then
  1196.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" _
  1197.         & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1198.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1199.         pos2 = InStr(pos1 + 1, strData, "</td>", vbTextCompare)
  1200.         TempArray(8) = Mid$(strData, pos1, pos2 - pos1)
  1201.         TempArray(8) = Replace(TempArray(8), "</font>", "")
  1202.         TempArray(8) = Replace(TempArray(8), "</a>, ", ", ")
  1203.         tmp = TempArray(8)
  1204.         For i = 0 To 5
  1205.             tmp = SimpleHTMLRep(TempArray(8), "<", ">", "")
  1206.             If tmp <> "n.a" Then TempArray(8) = tmp
  1207.         Next i
  1208.     Else
  1209.         TempArray(8) = "n.a"
  1210.     End If
  1211.     End If
  1212.  
  1213.     txtFileds(9).Text = TempArray(8)
  1214.     
  1215.     
  1216.     '///|\\\---------------------------------------------------------PRODUCTION
  1217.     
  1218.     
  1219.     '/// Extract the Production
  1220.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Produzione:") Then
  1221.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Produzione:")
  1222.     If pos1 > 0 Then
  1223.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1224.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1225.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1226.         TempArray(10) = Mid$(strData, pos1, pos2 - pos1)
  1227.         
  1228.         If InStr(TempArray(10), "href") > 0 Then
  1229.         pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Produzione:")
  1230.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" _
  1231.         & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1232.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1233.         pos2 = InStr(pos1 + 1, strData, "</td>", vbTextCompare)
  1234.         TempArray(10) = Mid$(strData, pos1, pos2 - pos1)
  1235.         TempArray(10) = Replace(TempArray(10), "</font>", "")
  1236.         TempArray(10) = Replace(TempArray(10), "</a>, ", ", ")
  1237.         tmp = TempArray(10)
  1238.         For i = 0 To 3
  1239.             tmp = SimpleHTMLRep(TempArray(10), "<", ">", "")
  1240.             If tmp <> "n.a" Then TempArray(10) = tmp
  1241.         Next i
  1242.         
  1243.     End If
  1244.     
  1245.     Else
  1246.         TempArray(10) = "n.a"
  1247.     End If
  1248.     End If
  1249.     
  1250.     txtFileds(10).Text = TempArray(10)
  1251.     
  1252.     
  1253.     '///|\\\---------------------------------------------------------DISTRIBUTION
  1254.     
  1255.     
  1256.     '/// Extract Distribution
  1257.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Distribuzione:") Then
  1258.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Distribuzione:")
  1259.     If pos1 > 0 Then
  1260.         pos1 = InStr(pos1 + 1, strData, "target=""" & "_blank""" & ">", vbTextCompare) _
  1261.         + Len("target=""" & "_blank""" & ">")
  1262.         pos2 = InStr(pos1 + 1, strData, "</a></font></td>", vbTextCompare)
  1263.         TempArray(11) = Mid$(strData, pos1, pos2 - pos1)
  1264.     Else
  1265.         TempArray(11) = "n.a"
  1266.     End If
  1267.     End If
  1268.     
  1269.     If TempArray(11) = " " Then TempArray(11) = "n.a"
  1270.     txtFileds(11).Text = TempArray(11)
  1271.     
  1272.     
  1273.     '///|\\\---------------------------------------------------------DATE MOVIE OUT
  1274.     
  1275.     
  1276.     '/// Extract date Out
  1277.     If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Data di uscita:") Then
  1278.     pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Data di uscita:")
  1279.     If pos1 > 0 Then
  1280.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1281.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1282.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1283.         TempArray(12) = Mid$(strData, pos1, pos2 - pos1)
  1284.     Else
  1285.         TempArray(12) = "n.a"
  1286.     End If
  1287.     Else
  1288.         If InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Uscita prevista:") Then
  1289.         pos1 = InStr(strData, "<td valign=""" & "top""" & " nowrap><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Uscita prevista:")
  1290.     If pos1 > 0 Then
  1291.         pos1 = InStr(pos1 + 1, strData, "<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">", vbTextCompare) _
  1292.         + Len("<td valign=""" & "top""" & "><font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">")
  1293.         pos2 = InStr(pos1 + 1, strData, "</font></td>", vbTextCompare)
  1294.         TempArray(12) = Mid$(strData, pos1, pos2 - pos1)
  1295.     Else
  1296.         TempArray(12) = "n.a"
  1297.     End If
  1298.     End If
  1299.     
  1300.     End If
  1301.     
  1302.     If TempArray(12) = " " Then TempArray(12) = "n.a"
  1303.     TempArray(12) = Replace(TempArray(12), "<br />", " ")
  1304.     txtFileds(12).Text = TempArray(12)
  1305.     
  1306.     
  1307.     '///|\\\---------------------------------------------------------THE PLOTS
  1308.     
  1309.     
  1310.     '/// Extract Plot
  1311.     If InStr(strData, "<font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Trama:") Then
  1312.     pos1 = InStr(strData, "<font face=""" & "arial, helvetica""" & " size=""" & "2""" & ">Trama:")
  1313.     If pos1 > 0 Then
  1314.         pos1 = InStr(pos1 + 1, strData, "<br>", vbTextCompare) + 4
  1315.         pos2 = InStr(pos1 + 1, strData, "</font><br>", vbTextCompare)
  1316.         TempArray(13) = Mid$(strData, pos1, pos2 - pos1)
  1317.     Else
  1318.         TempArray(13) = "n.a"
  1319.     End If
  1320.     End If
  1321.     
  1322.     txtFileds(13).Text = TempArray(13)
  1323.     
  1324.     '/// Link of the Triler
  1325.     txtFileds(14) = TempArray(20)
  1326.     
  1327.     '///|\\\---------------------------------------------------------LINK OF THE COVER
  1328.     
  1329.     
  1330.     '/// Extract Link Cover
  1331.     If InStr(strData, "<td align=""" & "left""" & "><a class=""" & "filmup""" & " href=""" & "posters/locp/") Then
  1332.     pos1 = InStr(strData, "<td align=""" & "left""" & "><a class=""" & "filmup""" & " href=")
  1333.     If pos1 > 0 Then
  1334.         pos1 = InStr(pos1 + 1, strData, "href=", vbTextCompare) + 6
  1335.         pos2 = InStr(pos1 + 1, strData, " target=", vbTextCompare) - 1
  1336.         TempArray(14) = "http://filmup.leonardo.it/" & Mid$(strData, pos1, pos2 - pos1)
  1337.     Else
  1338.         TempArray(14) = "n.a"
  1339.     End If
  1340.     End If
  1341.     
  1342.     If TempArray(14) <> "n.a" Then
  1343.     '/// Go page of Poster
  1344.     strData = Inet.OpenUrl(TempArray(14))
  1345.     If statusRequest = "11" Then
  1346.             Frame2.Enabled = True
  1347.             MsgBox "This operation at this time is not possible!" & vbCrLf _
  1348.                 & "Response code from Inet returned (11)!", vbExclamation, App.Title
  1349.         Exit Function
  1350.     End If
  1351.     End If
  1352.     
  1353.     '/// Download Poster
  1354.     TempArray(15) = "http://filmup.leonardo.it/posters/loc" & ParsingString(1, strData, _
  1355.     "<img src=""" & "../loc", " width=", vbTextCompare)
  1356.     
  1357.     '/// Remuve special TAG
  1358.     TempArray(15) = Replace(TempArray(15), """", "")
  1359.     TempArray(15) = Replace(TempArray(15), " ", "")
  1360.     TempArray(15) = Replace(TempArray(15), "=", "")
  1361.     TempArray(15) = Replace(TempArray(15), "alt", "")
  1362.     TempArray(15) = Replace(TempArray(15), "/>", "")
  1363.     TempArray(15) = Replace(TempArray(15), "\<", "")
  1364.     
  1365.     '/// Remuve special CHARS from Title
  1366.     tmpTitleMovie = txtFileds(0).Text
  1367.     tmpTitleMovie = Replace(tmpTitleMovie, ":", "-")
  1368.     tmpTitleMovie = Replace(tmpTitleMovie, "\", "-")
  1369.     tmpTitleMovie = Replace(tmpTitleMovie, "/", "-")
  1370.     
  1371.     If FileExists(strFilesPath + tmpTitleMovie + ".jpg") Then
  1372.         '/// Display the Cover
  1373.         scCover.loadimg strFilesPath + tmpTitleMovie + ".jpg"
  1374.         '/// Get the Size
  1375.         Set Fs = FSO.GetFile(strFilesPath + tmpTitleMovie + ".jpg")
  1376.         lblSize.Caption = GetSizeBytes(Fs.Size, DISP_BYTES_SHORT)
  1377.         '/// Get the Height and Width
  1378.         If FileExists(App.Path + "\FreeImage.dll") Then
  1379.             dib = FreeImage_LoadEx(strFilesPath + tmpTitleMovie + ".jpg")
  1380.             lblHW.Caption = FreeImage_GetWidth(dib) & "x" & FreeImage_GetHeight(dib)
  1381.             '/// Adding other H and W
  1382.             cmbHW.Clear
  1383.             cmbHW.AddItem FreeImage_GetWidth(dib) & "x" & FreeImage_GetHeight(dib)
  1384.             cmbHW.AddItem FreeImage_GetWidth(dib) / 2 & "x" & FreeImage_GetHeight(dib) / 2
  1385.             cmbHW.AddItem FreeImage_GetWidth(dib) / 2 / 2 & "x" & FreeImage_GetHeight(dib) / 2 / 2
  1386.             cmbHW.AddItem FreeImage_GetWidth(dib) / 2 / 2 / 2 & "x" & FreeImage_GetHeight(dib) / 2 / 2 / 2
  1387.             cmbHW.ListIndex = 0
  1388.             Call FreeImage_Unload(dib)
  1389.         End If
  1390.     Else
  1391.     
  1392.     '/// If download Cover = SUCCESS
  1393.     If DownloadFile(TempArray(15), strFilesPath + tmpTitleMovie + ".jpg", , , tmpTitleMovie + ".jpg") = True Then
  1394.         If FileExists(strFilesPath + tmpTitleMovie + ".jpg") Then
  1395.             frames.Enabled = True
  1396.             '/// Display the Cover
  1397.             scCover.loadimg strFilesPath + tmpTitleMovie + ".jpg"
  1398.             '/// Get the Size
  1399.             Set Fs = FSO.GetFile(strFilesPath + tmpTitleMovie + ".jpg")
  1400.             lblSize.Caption = GetSizeBytes(Fs.Size, DISP_BYTES_SHORT)
  1401.         Else
  1402.             If GetDefCover() Then: _
  1403.             If FileExists(App.Path + "\cover_.jpg") Then scCover.loadimg App.Path + "\cover_.jpg"
  1404.             frames.Enabled = False
  1405.         End If
  1406.         '/// Get the Height and Width
  1407.         If FileExists(App.Path + "\FreeImage.dll") Then
  1408.             dib = FreeImage_LoadEx(strFilesPath + tmpTitleMovie + ".jpg")
  1409.             lblHW.Caption = FreeImage_GetWidth(dib) & "x" & FreeImage_GetHeight(dib)
  1410.             '/// Adding other H and W
  1411.             cmbHW.Clear
  1412.             cmbHW.AddItem FreeImage_GetWidth(dib) & "x" & FreeImage_GetHeight(dib)
  1413.             cmbHW.AddItem FreeImage_GetWidth(dib) / 2 & "x" & FreeImage_GetHeight(dib) / 2
  1414.             cmbHW.AddItem FreeImage_GetWidth(dib) / 2 / 2 & "x" & FreeImage_GetHeight(dib) / 2 / 2
  1415.             cmbHW.AddItem FreeImage_GetWidth(dib) / 2 / 2 / 2 & "x" & FreeImage_GetHeight(dib) / 2 / 2 / 2
  1416.             cmbHW.ListIndex = 0
  1417.             Call FreeImage_Unload(dib)
  1418.         End If
  1419.     Else
  1420.         If GetDefCover() Then: _
  1421.         If FileExists(App.Path + "\cover_.jpg") Then scCover.loadimg App.Path + "\cover_.jpg"
  1422.         frames.Enabled = False
  1423.     End If
  1424.     
  1425.     End If
  1426.     
  1427.     '///|\\\---------------------------------------------------------LINK OF THE TRAILER
  1428.     
  1429.     If FileExists(strFilesPath + tmpTitleMovie + ".mov") Then
  1430.     
  1431.     Else
  1432.     '/// Go to link of Movie Trailer if exist
  1433.     If ChkDownloadMovie.Value = 1 Then
  1434.     If TempArray(20) <> "n.a" Then
  1435.         DoEvents
  1436.         lblStatus.Caption = "Download movie Trailer..."
  1437.         TempArray(20) = Replace(TempArray(20), ".shtml", ".mov")
  1438.         TempArray(20) = Replace(TempArray(20), "filmup", "mediafilmup")
  1439.         DoEvents
  1440.         If DownloadFile(TempArray(20), strFilesPath + tmpTitleMovie + ".mov", , , tmpTitleMovie + ".mov") = True Then
  1441.             If FileExists(strFilesPath + tmpTitleMovie + ".mov") Then
  1442.                 DoEvents
  1443.                     lblStatus.Caption = "Download movie Trailer...Completate Ok!"
  1444.                 End If
  1445.             End If
  1446.         End If
  1447.     End If
  1448.     End If
  1449.     
  1450.     '///|\\\--------------------------------------------------------END CODE! _._._._ ///
  1451.     '/// Release FileSystemObject
  1452.     Set FSO = Nothing
  1453.     Set Fs = Nothing
  1454.     
  1455.     '/// Enabled All
  1456.     Frame2.Enabled = True
  1457.     
  1458.     '/// Empty all Variables
  1459.     i = 0
  1460.     For i = 0 To 20: TempArray(i) = Empty: Next
  1461.     
  1462.     strData = Empty
  1463.     
  1464.     lblStatus.Caption = "Info movie loaded success Ok!"
  1465.     
  1466.     cmdExport.Enabled = True
  1467.     
  1468.     '/// Return Success...
  1469.     SearchMovie = True
  1470. Exit Function
  1471.  
  1472. ResetAllFrames:
  1473.     lblStatus.Caption = "Reset after Error OK!"
  1474.     strData = Empty
  1475.     i = 0
  1476.     For i = 0 To 15: TempArray(i) = Empty: Next
  1477.     i = 0
  1478.     For i = 0 To 14: txtFileds(i).Text = "n.a": Next i
  1479.     lblSize.Caption = "n.a"
  1480.     lblHW.Caption = "n.a"
  1481.     If GetDefCover() Then: _
  1482.     If FileExists(App.Path + "\cover_.jpg") Then scCover.loadimg App.Path + "\cover_.jpg"
  1483.     Frame2.Enabled = True
  1484. Exit Function
  1485.  
  1486. ErrorHandler:
  1487.     If ChkError.Value = 1 Then
  1488.         Resume Next
  1489.     Else
  1490.     MsgBox "Error #" & Err.Number & "." & Err.Description, vbExclamation, App.Title
  1491.         SearchMovie = False
  1492.         GoTo ResetAllFrames
  1493.     End If
  1494.     Err.Clear
  1495. End Function
  1496. Private Function ParsingTitle(strString As String) As String
  1497.     On Local Error GoTo ParsingError
  1498.         '/// SPECIAL SMAL CHARS
  1499.         '-----------------------------------------
  1500.         strString = Replace(strString, "Ω", "%EA")
  1501.         strString = Replace(strString, "δ", "%EB")
  1502.         strString = Replace(strString, "∞", "%EC")
  1503.         strString = Replace(strString, "φ", "%ED")
  1504.         strString = Replace(strString, "ε", "%EE")
  1505.         strString = Replace(strString, "∩", "%FF")
  1506.         strString = Replace(strString, "α", "%E0")
  1507.         strString = Replace(strString, "ß", "%E1")
  1508.         strString = Replace(strString, "Γ", "%E2")
  1509.         strString = Replace(strString, "π", "%E3")
  1510.         strString = Replace(strString, "Σ", "%E4")
  1511.         strString = Replace(strString, "σ", "%E5")
  1512.         strString = Replace(strString, "µ", "%E6")
  1513.         strString = Replace(strString, "τ", "%E7")
  1514.         strString = Replace(strString, "Φ", "%E8")
  1515.         strString = Replace(strString, "Θ", "%E9")
  1516.         strString = Replace(strString, "≡", "%F0")
  1517.         strString = Replace(strString, "±", "%F1")
  1518.         strString = Replace(strString, "≥", "%F2")
  1519.         strString = Replace(strString, "≤", "%F3")
  1520.         strString = Replace(strString, "⌠", "%F4")
  1521.         strString = Replace(strString, "⌡", "%F5")
  1522.         strString = Replace(strString, "÷", "%F6")
  1523.         strString = Replace(strString, "≈", "%F7")
  1524.         strString = Replace(strString, "°", "%F8")
  1525.         strString = Replace(strString, "∙", "%F9")
  1526.         strString = Replace(strString, "·", "%FA")
  1527.         strString = Replace(strString, "√", "%FB")
  1528.         strString = Replace(strString, "ⁿ", "%FC")
  1529.         strString = Replace(strString, "²", "%FD")
  1530.         strString = Replace(strString, "■", "%FE")
  1531.         strString = Replace(strString, " ", "%FF")
  1532.         '/// SPECIAL SIMBOLS
  1533.         '-----------------------------------------
  1534.         'strString = Replace(strString, "+", "%2B")
  1535.         strString = Replace(strString, ",", "%2C")
  1536.         strString = Replace(strString, "-", "%2D")
  1537.         strString = Replace(strString, ".", "%2E")
  1538.         strString = Replace(strString, "/", "%2F")
  1539.         strString = Replace(strString, ":", "%3A")
  1540.         strString = Replace(strString, ";", "%3B")
  1541.         strString = Replace(strString, "<", "%3C")
  1542.         strString = Replace(strString, "=", "%3D")
  1543.         strString = Replace(strString, ">", "%3E")
  1544.         strString = Replace(strString, "?", "%3F")
  1545.         strString = Replace(strString, "[", "%5B")
  1546.         strString = Replace(strString, "\", "%5C")
  1547.         strString = Replace(strString, "]", "%5D")
  1548.         strString = Replace(strString, "^", "%5E")
  1549.         strString = Replace(strString, "_", "%5F")
  1550.         strString = Replace(strString, "`", "%60")
  1551.         strString = Replace(strString, "{", "%7B")
  1552.         strString = Replace(strString, "|", "%7C")
  1553.         strString = Replace(strString, "}", "%7D")
  1554.         strString = Replace(strString, "~", "%7E")
  1555.         strString = Replace(strString, "", "%7F")
  1556.         strString = Replace(strString, "è", "%8A")
  1557.         strString = Replace(strString, "ï", "%8B")
  1558.         strString = Replace(strString, "î", "%8C")
  1559.         strString = Replace(strString, "₧", "%8E")
  1560.         strString = Replace(strString, "Ü", "%9A")
  1561.         strString = Replace(strString, "¢", "%9B")
  1562.         strString = Replace(strString, "£", "%9C")
  1563.         strString = Replace(strString, "ƒ", "%9F")
  1564.         strString = Replace(strString, "í", "%A1")
  1565.         strString = Replace(strString, "ó", "%A2")
  1566.         strString = Replace(strString, "ú", "%A3")
  1567.         strString = Replace(strString, "ñ", "%A4")
  1568.         strString = Replace(strString, "Ñ", "%A5")
  1569.         strString = Replace(strString, "ª", "%A6")
  1570.         strString = Replace(strString, "º", "%A7")
  1571.         strString = Replace(strString, "¿", "%A8")
  1572.         strString = Replace(strString, "⌐", "%A9")
  1573.         strString = Replace(strString, "¬", "%AA")
  1574.         strString = Replace(strString, "½", "%AB")
  1575.         strString = Replace(strString, "¼", "%AC")
  1576.         strString = Replace(strString, "«", "%AE")
  1577.         strString = Replace(strString, "»", "%AF")
  1578.         'strString = Replace(strString, "░", "%B0")
  1579.         strString = Replace(strString, "▒", "%B1")
  1580.         strString = Replace(strString, "▓", "%B2")
  1581.         strString = Replace(strString, "│", "%B3")
  1582.         strString = Replace(strString, "┤", "%B4")
  1583.         strString = Replace(strString, "╡", "%B5")
  1584.         strString = Replace(strString, "╢", "%B6")
  1585.         strString = Replace(strString, "╖", "%B7")
  1586.         strString = Replace(strString, "╕", "%B8")
  1587.         strString = Replace(strString, "╣", "%B9")
  1588.         strString = Replace(strString, "║", "%BA")
  1589.         strString = Replace(strString, "╗", "%BB")
  1590.         strString = Replace(strString, "╝", "%BC")
  1591.         strString = Replace(strString, "╜", "%BD")
  1592.         strString = Replace(strString, "╛", "%BE")
  1593.         strString = Replace(strString, "┐", "%BF")
  1594.         '/// SPECIAL BIG CHARS
  1595.         '-----------------------------------------
  1596.         strString = Replace(strString, "└", "%C0")
  1597.         strString = Replace(strString, "┴", "%C1")
  1598.         strString = Replace(strString, "┬", "%C2")
  1599.         strString = Replace(strString, "├", "%C3")
  1600.         strString = Replace(strString, "─", "%C4")
  1601.         strString = Replace(strString, "┼", "%C5")
  1602.         strString = Replace(strString, "╞", "%C6")
  1603.         strString = Replace(strString, "╟", "%C7")
  1604.         strString = Replace(strString, "╚", "%C8")
  1605.         strString = Replace(strString, "╔", "%C9")
  1606.         strString = Replace(strString, "╩", "%CA")
  1607.         strString = Replace(strString, "╦", "%CB")
  1608.         strString = Replace(strString, "╠", "%CC")
  1609.         strString = Replace(strString, "═", "%CD")
  1610.         strString = Replace(strString, "╬", "%CE")
  1611.         strString = Replace(strString, "╧", "%CF")
  1612.         strString = Replace(strString, "╨", "%D0")
  1613.         strString = Replace(strString, "╤", "%D1")
  1614.         strString = Replace(strString, "╥", "%D2")
  1615.         strString = Replace(strString, "╙", "%D3")
  1616.         strString = Replace(strString, "╘", "%D4")
  1617.         strString = Replace(strString, "╒", "%D5")
  1618.         strString = Replace(strString, "╓", "%D6")
  1619.         strString = Replace(strString, "╫", "%D7")
  1620.         strString = Replace(strString, "╪", "%D8")
  1621.         strString = Replace(strString, "┘", "%D9")
  1622.         strString = Replace(strString, "┌", "%DA")
  1623.         strString = Replace(strString, "█", "%DB")
  1624.         strString = Replace(strString, "▄", "%DC")
  1625.         strString = Replace(strString, "▌", "%DD")
  1626.         strString = Replace(strString, "▐", "%DE")
  1627.         strString = Replace(strString, "▀", "%DF")
  1628.         ParsingTitle = strString
  1629.     Exit Function
  1630. ParsingError:
  1631.     ParsingTitle = Empty
  1632. End Function
  1633.  
  1634. Private Function ParsingString(ByVal Start As Long, Data As String, StartString As String, EndString As String, _
  1635.     Optional ByVal CompareMethod As VbCompareMethod = vbBinaryCompare) As String
  1636.     Dim lonStart As Long, lonEnd As Long
  1637.     On Local Error Resume Next
  1638.     lonStart = InStr(Start, Data, StartString, CompareMethod)
  1639.     If lonStart > 0 Then
  1640.         lonStart = lonStart + Len(StartString)
  1641.         lonEnd = InStr(lonStart, Data, EndString, CompareMethod)
  1642.         If lonEnd > 0 Then
  1643.             ParsingString = Mid$(Data, lonStart, lonEnd - lonStart)
  1644.         End If
  1645.     End If
  1646. End Function
  1647.  
  1648. Private Function DownloadFile(strURL As String, strDestination As String, Optional UserName As String = Empty, Optional password As String = Empty, Optional strFileName As String = Empty) As Boolean
  1649.  
  1650. Const CHUNK_SIZE As Long = 1024
  1651. Const ROLLBACK As Long = 4096
  1652.  
  1653. Dim bData() As Byte
  1654. Dim blnResume As Boolean
  1655. Dim intFile As Integer
  1656. Dim lngBytesReceived As Long
  1657. Dim lngFileLength As Long
  1658. Dim lngX
  1659. Dim sglLastTime As Single
  1660. Dim sglRate As Single
  1661. Dim sglTime As Single
  1662. Dim strFile As String
  1663. Dim strHeader As String
  1664. Dim strHost As String
  1665.  
  1666. On Local Error GoTo InternetErrorHandler
  1667.  
  1668. strFile = ReturnFileOrFolder(strDestination, True)
  1669. strHost = ReturnFileOrFolder(strURL, True, True)
  1670.  
  1671. StartDownload:
  1672. If blnResume Then
  1673.     lblStatus.Caption = "Resuming download..."
  1674.     lngBytesReceived = lngBytesReceived - ROLLBACK
  1675.     If lngBytesReceived < 0 Then lngBytesReceived = 0
  1676. Else
  1677.     lblStatus.Caption = "Retrive Poster..."
  1678. End If
  1679. DoEvents
  1680.  
  1681. With Inet
  1682.     .url = strURL
  1683.     .UserName = UserName
  1684.     .password = password
  1685.     .Execute , "GET", , "Range: bytes=" & CStr(lngBytesReceived) & "-" & vbCrLf
  1686.     While .StillExecuting
  1687.         DoEvents
  1688.     Wend
  1689.     
  1690.     lblStatus.Caption = "Download Poster..."
  1691.  
  1692.     strHeader = .GetHeader
  1693.     
  1694. End With
  1695.  
  1696. Select Case Mid$(strHeader, 10, 3)
  1697.     Case "200"
  1698.         If blnResume Then
  1699.             Kill strDestination
  1700.             If MsgBox("Impossibile riesumare il Download." & vbCr & vbCr & "Vuoi comunque continuare?", _
  1701.                      vbExclamation + vbYesNo, "Resume Download") = vbYes Then
  1702.                     blnResume = False
  1703.                 Else
  1704.                     CancelSearch = True
  1705.                     GoTo ExitDownload
  1706.                 End If
  1707.             End If
  1708.     Case "206"  ' 206=Contenuto Parziale
  1709.     Case "204"
  1710.         MsgBox "Niente da scaricare!", vbInformation, "Nessun Download"
  1711.         CancelSearch = True
  1712.         GoTo ExitDownload
  1713.     Case "401"
  1714.         MsgBox "Autorizzazione (negata) Download del file fallito!", vbCritical, "Non autorizzato"
  1715.         CancelSearch = True
  1716.         GoTo ExitDownload
  1717.     Case "404"  ' File non trovato
  1718.         MsgBox "File " & """" & strFileName & """" & " non presente sul ser>", lt      sli206"  'rnload.SfrStri
  1719.  
  1720. str"204"
  1721.         MsgBox "Niente da scaricare!", vbInformation, "Nessun Download"
  1722. )ader = .Geue)I& strFileNt            Goesume Nessun Download"
  1723. )ader = .Geue)I& strFileNt            Goesume Nessun Download"
  1724. )ader = .ox "File " & """" & strFileName & """" & " =trData, "<td vtrData,"NiennnnlN
  1725. )ader = .Geue)ºst            Goesume Nessun Download"
  1726. )ader == .ox "File il     Goesum "%C2")
  1727.         sun Download"
  1728. )Goesume Nessun Download"
  1729. )ade)Goesume0F        .e 
  1730.     
  1731.     '/// Extract Link Cover
  1732.     If InStr(strData, "<td align=.ox "File ilPingle .ox "File   \llExecuting
  1733.         DoEve GoesHr
  1734.    wnload"
  1735. lblStlExecuting
  1736.    ---S      ing, "        CancelSrDecelSrDecelSrδ9scuting
  1737.         DoEve G ErrorGET", sPrnnlN
  1738. )DecelSrDsstination
  1739.             If MsgBox("Impossibile ries strHeader = .N = on = "Download Poster..."
  1740.  
  1741.     strHeader = .▌ngcg sli206"  'rnload.SfrStri
  1742.  
  1743. str"204"
  1744.      nload. 04"
  1745.   s
  1746. str"204"epld&SuSHORT)ader eK.φg svr"204"epld&SuSHORT)ader emsato">, ", ies strHeader = .N = on = "Download Poster..."s ", ies strHeader = .N = on = "Download Poster...N = on = f MsgBox("I str,
  1747.     sx▐       TempArray(10) = Mid$(strData, pos1, pos2 - pos1)
  1748.         TempArray(10) = Replace(TempArray(10), "</font>", "")
  1749.         TempArray(10) = Replace(TempArray(10), "</a>, ", ", ")
  1750.         tmp = TempArray(10)
  1751.         For i = 0 To 3
  1752.             tmp = SimsmString, strDestB"%BB")
  1753.         strString = Replace(strStri▌(ng, strDestB"%BB")
  1754.         strString = Replacete "206"  ' 206=Contenuto Parziale
  1755.     Case KRplacestrStS
  1756.             tmp = SimpleHTMLRep(TempArray(10E "%B2")
  1757.         strString = Replace(strString, "│", "%B3")
  1758.         strString = Replace(strString, "┤", "%B4")
  1759.         strStrintErrorHandler
  1760.  
  1761. strFile ="%B4")1B4")
  1762.         strStrintErrorHandler
  1763.  
  1764. strFile ="%B4")1B4")
  1765.         strStrinplace(strStri0i206"      Mid$(strData, pos1, pos2 - pos1)
  1766.         Te2")
  1767.         strString = Replace(strStΘ s2 - pos1)
  1768.          pos2 - pog8trHeader = .N = on = "Download Poster...N = on = f MsgBoxze(Tempe ="%B4tring, "┐       str mediafilmup")
  1769.         DoEvents
  1770.         If Downa")
  1771. ,mpos2²= fvKf5m√n1, strData, "href=", vbTextCompare) + 6
  1772. rr
  1773. )ade)Goesume0F       ng = EmFile ilPingle .or"20strHost ade)Goe    strl:sa,"Nie     .e t ade)Goe   eader = .▌ngcg sli206"  'rnload.SfrStri
  1774.  
  1775. str"204"
  1776.      nload. 04"
  1777.   ace(strStΘ s2 - pos1)
  1778.          pos2 - pog8trHeaaaaaaaaaaaaaaaxists(App.Path + "\cover_.jpgen TempArray(12) = "n.a"l12)App.Path +p.Path + "\cov2) = "n.a"l12)App.Patl/// SP 6
  1779. rr
  1780. )ade)Goesume0F       ng = EmFile ilPingle .or"20strHos
  1781.         TempAre)I& strFv2) = "n.a"l12)App.Patl/// SP 6
  1782. rr
  1783. )ade)Goesum:\co("ImpossibilyHln.a"l12)App.Patl/// SP 6
  1784. rr
  1785. )ade)Goesum:\co("Im7ial, hErrorHandler
  1786.  
  1787. strFile ="%B4")1B4")
  1788.         strS   strStrinplace(strStri0i206"      s   ce(sost ade)Goe    strl:sa,"Nie     .e t ade)GoeEtrl:sa," t ade)Goe   eader = .▌ngcg sli20      DoE┘═6qiay(ice(sost6
  1789. rr
  1790. )ade)Goesum:\co("Im7iXB4")
  1791.         strS   strStrinplace(strStri0i206"      s   ce(sost ade)Goe    strl:sa,"Nie     .eTP IIp FreeIC     ngcg sli20      DoE┘═6qiay(ice(sost6
  1792. rr
  1793. )T = i20      DoE┘═6qiay(HARS
  1794.         '-----------------------------------------
  1795.         strStringiIe     TempArray(20) =)
  1796.         Te2")
  1797.         strString = Replac s   cestrStr-
  1798.         strStringiIe     TempArray(20) =)
  1799.         Te2")"Fl            Pars■`GetWidtl:sa,"Nie   -/ ExtrArray(10) = Re:√    s-------IGetWidtl:sa,"Nie   -/ Ehbs = .▌ngcg sli2inplaceoesume0F  llm:\co("Im7ial, hErrorHandler
  1800.  
  1801. strFile ="%I sli2iF  llm:\coy(6) m7ial,τIceo strl:rStrincita:".▌ngcg seEnd +ta:".▌Io st) m7ial,τIceo strl:rStrincita:".▌ngcg seEnd VB(str"204"
  1802.  " strl:rStrincita:".▌Oial, helvetica""" & " size=""" & "2""" & ">Dis<K     DoE┘═6qiaÜr>", lt   ≤& " " size  Do& "-" & vbCrLf
  1803.     While .StillExecutiso     Te2")
  1804.   u2h╘der = .▌ng╝de)GoeEtrl:sbs = .▌ngcg sli2inplpla
  1805.         strString = Rep
  1806. strString = Rep
  1807. sxxecutiso     npp.Path + "\covert≥ïrDat5+ "\c= strString = Rep
  1808. strString = Rep
  1809. sxxecutiso     npAr      place(strString, ">", "%3E")
  1810.         strString = Replace(strStef=", vbTextCompare) + 6
  1811. rr
  1812. )ade)Goesume0F      π<K     DoE┘═6qiaÜr>", lt   ≤& " " size  Do& "trSt≈t   ≤& " " size  Do& "trSt≈t   ≤& " " size  Do& "h5O:er`" t ade)Goe   eader =       )Goe  -" & v "trSt≈t   ≤& " " & v "trSt≈t  l1pArray(15) = R, "iP bTextCompare)F   ≤& " TextCompares  Ie    i App.Path + "\covGoesume0F      π<K     DoE┘═6qiaÜr>", lt   ≤&Compares  Ie    i App.Path e    i App.Path e    ss  Ie    i App.Path e    i App.Path e    ss  Ie    i App.PatoS_╕oe    sApp.Patp.Path e    ss  Ie    i App.PatoS_╕oe